$(function () {
    $('.btn-delete').click(function () {
        var url = $(this).data('url');
        console.log(url);
        Swal.fire({
            title: '您真的不要我了吗?',
            text: "再也回不来了哦!",
            icon: 'warning',
            showCancelButton: true,
            confirmButtonColor: '#3085d6',
            cancelButtonColor: '#d33',
            confirmButtonText: '删除!',
            cancelButtonText: '再想想!'
        }).then((result) => {
            if(result.value) {
                location.href = url ;
            }
        });
    })
})
